progressbar: Never stop never stopping
authorBenjamin Otte <otte@redhat.com>
Tue, 26 Jun 2018 02:13:24 +0000 (04:13 +0200)
committerBenjamin Otte <otte@redhat.com>
Tue, 26 Jun 2018 02:14:25 +0000 (04:14 +0200)
Reinstate code that was accidentally deleted during the port to
GtkProgressTracker in commit d57ebe2de7d.

Without that code, pulsing the progressbar will stop doing anything
after 3 iterations.

gtk/gtkprogressbar.c

index 90936b0a306f8b23636cd3a46284ebba578ed3f2..4cb8437ab4caab6e5130229f0bbedec19f05ea24 100644 (file)
@@ -1226,7 +1226,10 @@ tick_cb (GtkWidget     *widget,
   priv->last_iteration = iteration;
 
   if (current_iterations > 3 * pulse_iterations)
-    return G_SOURCE_CONTINUE;
+    {
+      priv->pulse1 = 0;
+      return G_SOURCE_CONTINUE;
+    }
 
   /* advance the block */
   if (priv->activity_dir == 0)